a = set([1, 2, 3])
b = set([4, 5, 3])

print(len(a & b))
